﻿using Coolzon.Realtime.Contracts;
using Coolzon.Realtime.Contracts.CommandData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.Realtime.ServerApp.ServiceImplement
{
    public class ReqMouseEventHandler : BaseHandler<ReqMouseEventData, RespMouseEventData>
    {
        public ReqMouseEventHandler()
            : base(RESPONSE_SCENARIO.SCENE, RESPONSE_COMMAND.SCENE.MOUSEEVENT)
        {
        }

        protected override RespMouseEventData OnHandle(Request request, ReqMouseEventData requestData)
        {
            RespMouseEventData respMouseEventData = new RespMouseEventData();
            respMouseEventData.SceneName = requestData.SceneName;
            respMouseEventData.EventSource = requestData.EventSource;
            respMouseEventData.PartName = requestData.PartName;
            respMouseEventData.PointX = requestData.PointX;
            respMouseEventData.PointY = requestData.PointY;

            return respMouseEventData;
        }
    }
}
